<template>
    <div>
        <mt-swipe :auto="4000">
            <!-- 谁使用轮播图组件 谁为我们传递 swipeList 【父组件向子组件传值】 -->
            <!-- 要注意item中的内容-->
            <mt-swipe-item v-for="item in swipeList" :key="item.img">
                <img :src="item.img" :class="{ 'full': isFull}">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
export default {
    data() {
        return {

        }
    },
    methods: {

    },
    props: ['swipeList', 'isFull']
}
</script>

<style lang="scss" scoped>

    .mint-swipe {
        height: 200px;
        
        .mint-swipe-item {
            text-align: center;
        }
    }

    .full {
        width: 100%;
    }

</style>